package com.iteaj.network.server.component;

import com.iteaj.network.codec.adapter.SimpleChannelDecoderAdapter;
import com.iteaj.network.config.ConnectProperties;
import com.iteaj.network.message.UnParseBodyMessage;

public abstract class SimpleChannelDecoderComponent<M extends UnParseBodyMessage> extends SocketDecoderComponent<M> {

    public SimpleChannelDecoderComponent(ConnectProperties connectProperties) {
        super(connectProperties);
    }

    @Override
    public SimpleChannelDecoderAdapter getMessageDecoder() {
        return new SimpleChannelDecoderAdapter(this);
    }

}
